#ifndef CALLBACK_H
#define CALLBACK_H

#include <QObject>
#include <QtNetwork> 

class Callback : public QObject {
  Q_OBJECT;
  public:
       explicit Callback( QObject* parent = 0 );
       ~Callback();
  public slots:
    void authReq(int, bool );
    void contactsFetched( bool );
    void groupsFetched( bool );
    void responseHeaderReceived ( const QHttpResponseHeader & resp );
  public:
    QHttp* http;
  private:
    QString auth;
    void contactsRequest();
    void groupsRequest();

    QMap<QString,QString> groupmap;
};

#endif
